﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;


namespace com.guojin.mj.net.message.game
{
    public class MidChangeRoomInfoRet: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  40 ;

        public int changeType { get; set; }
        public int minScore { get; set; }
        public int maxScore { get; set; }
        public int addTime { get; set; }
        public string roomId { get; set; }

        public void decode(Input _in)
        {
            changeType = _in.readInt();
            minScore = _in.readInt();
            maxScore = _in.readInt();
            addTime = _in.readInt();
            roomId = _in.readString();
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("MidChangeRoomInfoRet[changeTyupe={0},minScore={1}, maxScore = {2}, addTime ={3}], roomId = {4}", changeType, minScore,maxScore, addTime, roomId);
        }
    }
}